package com.qq.first_project.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qq.first_project.entity.Type;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class ProductVo implements Serializable {
    private Long id;
    private String name;

    @TableField(fill = FieldFill.INSERT_UPDATE)// 自动填充
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 入参格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")// 出参格式化
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)// 自动填充
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 入参格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")// 出参格式化
    private Date createTime;

    private Integer price;
    private Integer totalNum;
    private String deleted;
    private String version;
    private String remark;
    private Long typeId;
    private String typeName;

}
